Closed
Bug 1031945
Opened 10 years ago
Closed 10 years ago
The "dom.disable_window_showModalDialog" preference should hide window.showModalDialog
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla34
People
(Reporter: emk, Assigned: bzbarsky)
References
Details
Attachments
(2 files)
3.93 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
2.81 KB,
patch
|
Details | Diff | Splinter Review |
See bug 981796 comment #4. This bug should be trivial because bug 789261 is alreay fixed.
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8460749 -
Flags: review?(bugs)
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Comment 2•10 years ago
|
||
Comment on attachment 8460749 [details] [diff] [review] Don't expose showModalDialog on Window if it's preffed off >- if (Preferences::GetBool("dom.disable_window_showModalDialog", false)) { >+ if (Preferences::GetBool(sShowModalDialogPref, false)) { Why not use !IsShowModalDialogEnabled(nullptr, nullptr) here
Attachment #8460749 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 3•10 years ago
|
||
> Why not use !IsShowModalDialogEnabled(nullptr, nullptr) here
Good idea, Done, but I made the args default to nullptr, so:
if (!IsShowModalDialogEnabled()) {
Assignee | ||
Comment 4•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/f1224e8676b1
Flags: in-testsuite?
Target Milestone: --- → mozilla34
Assignee | ||
Comment 5•10 years ago
|
||
And backed out: https://hg.mozilla.org/integration/mozilla-inbound/rev/c1354624b6fe Android and b2g set this pref. This causes two test failures: Two issues: 1) js/src/tests/js1_5/Regress/regress-328897.js is a broken-ass test that uses showModalDialog to trigger an exception, and now it's getting the wrong exception. It's also almost certainly no longer testing what it meant to be testing; I'll look into just removing it. 2) dom/imptests/html/html/browsers/the-window-object/test_window-properties.html expects this method to be there. Can we just fix that? ;)
Flags: needinfo?(Ms2ger)
Assignee | ||
Updated•10 years ago
|
Whiteboard: [leave open]
Assignee | ||
Updated•10 years ago
|
Flags: needinfo?(bzbarsky)
Comment 6•10 years ago
|
||
Updated•10 years ago
|
Flags: needinfo?(Ms2ger)
Comment 7•10 years ago
|
||
https://github.com/w3c/web-platform-tests/pull/1122
Comment 8•10 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=4ddf64223647
Assignee | ||
Comment 9•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/3631c6245ed4
Flags: needinfo?(bzbarsky)
Assignee | ||
Updated•10 years ago
|
Whiteboard: [leave open]
Comment 10•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/3631c6245ed4
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•