Project

General

Profile

« Previous | Next » 

Revision e2d26bad

Added by koszko almost 2 years ago

Fix sanitizing of non-HTML XMLDocument's

View differences:

content/page_actions.js
11 11
 * IMPORT browser
12 12
 * IMPORT report_script
13 13
 * IMPORT report_settings
14
 * IMPORT report_content_type
14
 * IMPORT report_document_type
15 15
 * IMPORTS_END
16 16
 */
17 17

  
......
70 70
			     doc_ready_promise) {
71 71
    policy_received_callback = policy_received_cb;
72 72
    url = document.URL;
73
    is_html = /html/.test(document.contentType);
74
    report_content_type(document.contentType);
73
    is_html = document instanceof HTMLDocument;
74
    report_document_type(is_html);
75 75

  
76 76
    doc_ready_promise.then(document_ready);
77 77

  

Also available in: Unified diff